package com.ssy.lingxi.order.repository;

import com.ssy.lingxi.order.entity.BaseOrderPayChannelDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 支付方式与支付渠道Jpa仓库
 * @author 万宁
 * @version 2.0.0
 * @date 2021-08-11
 */
@Repository
public interface BaseOrderPayChannelRepository extends JpaRepository<BaseOrderPayChannelDO, Long>, JpaSpecificationExecutor<BaseOrderPayChannelDO>, QuerydslPredicateExecutor<BaseOrderPayChannelDO> {
    List<BaseOrderPayChannelDO> findByStatus(Integer status);

    List<BaseOrderPayChannelDO> findByPayTypeInAndStatus(List<Integer> payTypes, Integer status);
}
